﻿<Window x:Class="SMG.Presentation.WGrupo"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Cadastro de Grupo" MinWidth="255" MinHeight="110" Width="255" Height="110"
        WindowStartupLocation="CenterScreen">
    <Grid Margin="5">
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>

        <Grid x:Name="gridForm" IsEnabled="False">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"/>
            </Grid.RowDefinitions>

            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>

            <TextBlock Text="Nome :"/>
            <TextBox x:Name="txtNome" Grid.Column="1" HorizontalAlignment="Left" Margin="5,0,0,0" MaxLength="20" MinWidth="160" Width="173" Height="23"/>
        </Grid>

        <StackPanel Orientation="Horizontal" Grid.Row="1" HorizontalAlignment="Right">
            <Button x:Name="btnNovo" Content="Novo" Height="30" VerticalAlignment="Top" Margin="3" Click="btnNovo_Click"/>
            <Button x:Name="btnAlterar" Visibility="Collapsed"  Content="Alterar" Height="30" VerticalAlignment="Top" Margin="3" Click="btnAlterar_Click"/>
            <Button x:Name="btnSalvar" Visibility="Collapsed" Content="Salvar" Height="30" VerticalAlignment="Top" Margin="3" Click="btnSalvar_Click"/>
            <Button x:Name="btnConsultar" Content="Consultar" Height="30" VerticalAlignment="Top" Margin="3" Click="btnConsultar_Click" />
            <Button x:Name="btnExcluir" Visibility="Collapsed" Content="Excluir" Height="30" VerticalAlignment="Top" Margin="3" Click="btnExcluir_Click"/>
            <Button x:Name="btnCancelar" Visibility="Collapsed" Content="Cancelar" Height="30" VerticalAlignment="Top" Margin="3" Click="btnCancelar_Click"/>
            <Button x:Name="btnSair" Content="Sair" Height="30" VerticalAlignment="Top" Margin="3" Click="btnSair_Click"/>
        </StackPanel>
    </Grid>
</Window>
